<!DOCTYPE HTML>
<html>
<head>
    {include file='common_header'}
    <title>返佣明细</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 用户管理 <span class="c-gray en">&gt;</span>返佣明细
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            <a href="javascript:;" onclick="delectCheck('{:url('del')}',$('.item'))" class="btn btn-danger radius">
                  <i class="Hui-iconfont">&#xe6e2;</i> 批量删除
            </a>
        </span>
        <div style="float: right">
            <span class="l" style="margin-left:14px;">
                <label>类型：</label>
                <span class="select-box inline">
                    <select id="selects" class="select "  style="width: 180px">
                        <option value=""  >全部</option>
                        <option value="1"  {if condition="$i_state eq 1"}selected{/if}>未返现</option>
                        <option value="2" {if condition="$i_state eq 2"}selected{/if}>已返现</option>
                    </select>
                </span>
            </span>
            <label>真实姓名：</label>
            <input type="text" class="input-text" style="width:250px" placeholder="请输入用户真实姓名" id="keywords" name="keywords" value="{$keyword}">
            <button type="button" class="btn btn-success" onclick="reload($('#keywords').val())"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>
        <table class="table table-border table-bordered table-bg">
            <thead>
            <tr>
                <th scope="col" colspan="10"></th>
            </tr>
            <tr class="text-c">
                <th width="25"><input type="checkbox" name="" value=""></th>
                <th width="40">ID</th>
                <th width="80">真实姓名</th>
                <th width="80">返佣金额</th>
                <th width="80">状态</th>
                <th width="80">备注</th>
                <th width="130">返佣时间</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="income" id="v"}
            <tr class="text-c">
                 <td><input type="checkbox" value="{$v.id}" name="" class="item"></td>
                <td>{$v.id}</td>
                <td>{$v.user_realname}</td>
                <td>{$v.i_money}</td>
                <td>
                    {if condition="$v['i_state'] eq 1"}
                        <font style="color: green">未返现</font>
                    {else/}
                        <font style="color: red">已返现</font>
                    {/if}
                </td>
                <td>{$v.i_remark}</td>
                <td>{$v.add_time|date='Y-m-d H:i:s',###}</td>
                <td class="td-manage">
                    <a title="删除" href="javascript:;" onclick="delectOne('{:url('del',array('id'=>$v['id']))}',this)"  style="text-decoration:none" class="btn btn-danger radius">
                        <i class="Hui-iconfont">&#xe6e2;</i>
                    </a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="page">
            {$page}
        </div>
    </div>
    <!--_footer 作为公共模版分离出去-->
    {include file='common_footer'}
    <!--/_footer 作为公共模版分离出去-->
</div>
</body>
<script>
    function reload() {
        var selects = $("#selects option:selected").val();
        var keyword = $("input[name='keywords']").val();
        goUrl('?i_state=' + selects + '&keyword=' + keyword);
    }

</script>
</html>